import 'package:flutter/material.dart';

// class TestPage extends StatelessWidget {
//   String name = "Test测试";
//   final arguments;
//   TestPage({this.arguments});
//   @override
//   Widget build(BuildContext context) {
//     return Scaffold(
//       appBar: AppBar(
//         title: Text(name),
//       ),
//       body: Card(
//         child: ListView(
//           children: [
//             ListTile(
//               title: Text("${ModalRoute.of(context).settings.arguments}"),
//             ),
            
//           ],
//         ),
//       ),
//     );
//   }
// }

class TestPage extends StatefulWidget{
  @override
  State<StatefulWidget> createState()=> TestPageState();
}
class TestPageState extends State<TestPage>{
  Widget build(BuildContext context){
    Map map = ModalRoute.of(context).settings.arguments;
    return Scaffold(
      appBar: AppBar(
        title: Text('TestBar'),
      ),
      body: Container(
        child: Text('${map["name"]}'),
      ),
    );
  }
}